package demo.builder;


/**
 * @author : feixiang.li
 * @since : 2025-09-17 21:42
 */
public class Main {
    public static void main(String[] args) {
        String sql = SQL.build(SQL.SqlType.SELECT)
                .columns("name")
                .table("user")
                .where("id = ?")
                .where("name = ?")
                .build();
        String sql2 = SQL.update()
                .table("user")
                .where("id = ?")
                .setParams("id", 1)
                .build();
        System.out.println(sql);
        System.out.println(sql2);

        String build = SQL.insert()
                .table("user")
                .columns("name", "id")
                .values("feixiang.li", String.valueOf(1)).build();
        System.out.println(build);
    }
}
